<template>
    <div class="flex-col">
        <div class="flex1">
            <div class="panel _body">
                <el-form ref="form"
                         :model="oForm"
                         label-width="14em"
                         class="moduleform">
                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="单位名称:">
                                <el-input v-model="oForm.unitname"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="注册地址:">
                                <el-input v-model="oForm.regaddress"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="单位名称:">
                                <el-input v-model="oForm.unitname"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="生产经营场所地址:">
                                <el-input v-model="oForm.opeaddress"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="行业类别:">
                                <el-input v-model="oForm.industrytype"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="投产日期:">
                                <el-input v-model="oForm.operatime"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="生产经营场所中心经度:">
                                <el-input v-model="oForm.opeaddresslo"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="生产经营场所中心纬度:">
                                <el-input v-model="oForm.opeaddresslo"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="组织机构代码:">
                                <el-input v-model="oForm.orgcode"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="统一社会信用代码:">
                                <el-input v-model="oForm.creditcode"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="技术负责人:">
                                <el-input v-model="oForm.technical"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="联系电话:">
                                <el-input v-model="oForm.telphone"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="所在地是否属于大气重点控制区:">
                                <el-input v-model="oForm.isspecial"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="所在地是否属于总磷控制区:">
                                <el-input v-model="oForm.isphosphorus"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="所在地是否属于总氮控制区:">
                                <el-input v-model="oForm.istotalnitrogen"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="所在地是否属于重金属污染特别排放限值实施区域:">
                                <el-input v-model="oForm.isheavymetal"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="是否位于工业园区:">
                                <el-input v-model="oForm.ispark"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="所属工业园区名称:">
                                <el-input v-model="oForm.industrialname"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="是否需要改正:">
                                <el-input v-model="oForm.needupdate"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="排污许可证管理类别:">
                                <el-input v-model="oForm.pwxkzgltype"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="24"
                                v-if="oForm.zywrwlb">
                            <el-form-item prop="name"
                                          label="主要污染物类别:">
                                <el-checkbox-group v-model="oForm.zywrwlb">
                                    <el-checkbox label="1">废气</el-checkbox>
                                    <el-checkbox label="2">废水</el-checkbox>
                                </el-checkbox-group>

                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="24"
                                v-if="oForm.zywrwzl">
                            <el-form-item prop="name"
                                          label="主要污染物种类:">


                                <el-checkbox-group v-model="oForm.zywrwzl">
                                    <el-checkbox label="1">颗粒物</el-checkbox>
                                    <el-checkbox label="2">SO2</el-checkbox>
                                    <el-checkbox label="3">NOx</el-checkbox>
                                    <el-checkbox label="4">VOCs</el-checkbox>
                                    <el-checkbox label="5">其他特征污染物(非甲烷总烃)</el-checkbox>
                                    <el-checkbox label="6">COD</el-checkbox>
                                    <el-checkbox label="7">氨氮</el-checkbox>
                                    <el-checkbox label="8">其他特征污染物(总磷(以P计),pH值,悬浮物,五日生化需氧量</el-checkbox>

                                </el-checkbox-group>

                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12"
                                v-if="oForm.dqwrwpfxs">
                            <el-form-item prop="name"
                                          label="大气污染物排放形式:">
                                <el-checkbox-group v-model="oForm.dqwrwpfxs">
                                    <el-checkbox label="1">有组织</el-checkbox>
                                    <el-checkbox label="2">无组织</el-checkbox>
                                </el-checkbox-group>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12"
                                v-if="oForm.fswrwpfgl">
                            <el-form-item label="废水污染物排放规律:">
                                <el-checkbox-group v-model="oForm.fswrwpfgl">
                                    <el-checkbox label="1">间断排放,排放期间流量不稳定,但有周期性规律</el-checkbox>
                                </el-checkbox-group>
                            </el-form-item>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="12">
                            <el-form-item prop="name"
                                          label="大气污染物排放执行标准名称:">
                                <el-input v-model="oForm.dqwrwpfzxbzname"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item label="水污染物排放执行标准名称:">
                                <el-input v-model="oForm.swrwpfzxbzname"
                                          readonly></el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>


                </el-form>
            </div>
        </div>

    </div>
</template>

<script> 
    import { URLS_HBDA } from '@/urls.js';
    export default {
        name: 'jbqk',
        data() {

            return {
                oForm: {
                },

            }
        },
        mounted() {
            this.fResetForm();
            this.$EventBus.$on("parameters", (value) => {
            });
        },
        beforeDestroy() {
            this.$EventBus.$off('parameters')
        },
        //**** methods
        methods: {

            //请求表格数据
            fResetForm() {
                this.$WIV.fRequest({
                    url: URLS_HBDA.d_getQyhbdaJbqkList
                }).then((res) => {
                    this.oForm = res.data
                    this.oForm.isspecial = (this.oForm.isspecial == 1 ? '是' : '否')//所在地是否属于大气重点控制区
                    this.oForm.isphosphorus = (this.oForm.isphosphorus == 1 ? '是' : '否')//所在地是否属于总磷控制区
                    this.oForm.istotalnitrogen = (this.oForm.istotalnitrogen == 1 ? '是' : '否')//所在地是否属于总氮控制区
                    this.oForm.isheavymetal = (this.oForm.isheavymetal == 1 ? '是' : '否')//所在地是否属于重金属污染特别排放限值实施区域
                    this.oForm.industrialcode = (this.oForm.industrialcode == 1 ? '是' : '否')//是否属于工业园区 
                    this.oForm.ispark = (this.oForm.ispark == 1 ? '是' : '否')//是否位于工业园区
                    this.oForm.needupdate = (this.oForm.needupdate == 1 ? '是' : '否')//是否需要改正
                    this.oForm.zywrwlb = this.oForm.zywrwlb.split(',')
                    this.oForm.zywrwzl = this.oForm.zywrwzl.split(',')
                    this.oForm.dqwrwpfxs = this.oForm.dqwrwpfxs.split(',')
                    this.oForm.fswrwpfgl = this.oForm.fswrwpfgl.split(',')
                })
            },
        }
    }
</script>

<style lang="less" rel="stylesheet" scoped>
</style>
